import http from '@/service'

// ---feature/wang --电台--推荐节目
export function getProgramList() {
    return http({
        url: `/program/recommend?cookie=${localStorage.getItem('cookie')}`,
        method: 'get',

    })
}
// ---电台节目详情
export function djProgramDetails(params){
    return http({
        url:`/dj/program/detail?cookie=${localStorage.getItem('cookie')}`,
        method:'get',
        params
    })
}
//  获取  电台节目评论
export function djProgramRemark(params){
    return http({
        url:`/comment/dj?cookie=${localStorage.getItem('cookie')}`,
        method:'get',
        params
    })
}
// 电台节目 点赞
// export function djProgramThumbs(params){
//     return http({
//         url:`/resource/like?cookie=${localStorage.getItem('cookie')}`,
//         method:'get',
//         params
//     })
// }
// --- 电台节目 评论
export function djSetRemark(params) {
    return http({
        url: `/comment?cookie=${localStorage.getItem('cookie')}`,
        method: 'GET',
        params
    })
}
// 音乐下载
export function djSongDown(params) {
    return http({
        url: `/song/download/url?cookie=${localStorage.getItem('cookie')}`,
        method: 'GET',
        params
    })
}